Crate cursive_core

Source
Expand description

§Cursive-core

This library defines the core components for the Cursive TUI.

The main purpose of cursive-core is to write third-party libraries to work with Cursive.

If you are building an end-user application, then cursive is probably what you want.

Re-exports§

pub use self::vec::Vec2;
pub use self::view::View;

Modules§

align
Tools to control view alignment.
backend
Define the backend trait for actual terminal interaction.
buffer
Output buffer
builder
Build views from configuration.
direction
Direction-related structures.
event
User-input events and their effects.
logger
Logging utilities.
menu
Build menu trees.
reexports
Re-export crates used in the public API
style
Handle colors and styles in the UI.
theme
Theming support for a consistent UI.
traits
Commonly used traits bundled for easy import.
utils
Toolbox to make text layout easier.
vec
Points on the 2D character grid.
view
Base elements required to build views.
views
Various views to use when creating the layout.

Macros§

fn_blueprint
Define a macro for a variable builder.
immut1
Macro to wrap a FnMut with 1 argument into a Fn.
immut2
Macro to wrap a FnMut with 2 arguments into a Fn.
immut3
Macro to wrap a FnMut with 3 arguments into a Fn.
impl_enabled
A macro to help with creating toggleable views.
impl_scroller
Implements the Scroller trait for any type.
inner_getters
Convenient macro to implement the getters for inner View in ViewWrapper.
manual_blueprint
Define a blueprint to manually build this view from a config file.
once1
Macro to wrap a FnOnce with 1 argument into a FnMut.
submit
Enter an element into the plugin registry corresponding to its type.
wrap_impl
Convenient macro to implement the ViewWrapper trait.

Structs§

Cursive
Central part of the cursive library.
CursiveRunner
Event loop runner for a cursive instance.
Dump
Represents a dump of everything from a Cursive instance.
Printer
Convenient interface to draw on a subset of the screen.
Rect
A non-empty rectangle on the 2D grid.
XY
A generic structure with a value for each axis.

Traits§

With
Generic trait to enable chainable API

Type Aliases§

CbSink
Convenient alias to the result of Cursive::cb_sink.
ScreenId
Identifies a screen in the cursive root.

Attribute Macros§

blueprint
Defines a blueprint for creating a view from config.
callback_helpers
Generate two helper functions to help working with cursive blueprints.
OSZAR »